package com.ows.powercontrol.service.impl;

import java.awt.*;
import java.awt.event.KeyEvent;

public class GetF11 {

    public static void main(String[] args) throws AWTException {

        new Thread(() -> {
            Robot robot = null;
            try {
                robot = new Robot();
            } catch (AWTException e) {
                e.printStackTrace();
            }

            robot.delay(10000);
            robot.keyPress(KeyEvent.VK_F11);
            robot.keyRelease(KeyEvent.VK_F11);
        }).start();

    }
}
